from flask import request

from core.vip import Vip


def query(**kwargs):
    """
       获取服务器VIP信息
       :param number: 卡号或者手机号
       :param storeid: 店仓ID
       :return: vip信息
       """
    requestJson = request.get_json(True)
    print(requestJson)
    number = requestJson["number"];
    storeid = requestJson["storeid"]
    print(str(number) + " " + str(storeid))

    vip = Vip()
    ret = vip.query(number, storeid)

    return ret
